package com.example.sqldemo.cursor;


import com.example.sqldemo.mapper.SqlMapper;
import org.apache.ibatis.cursor.Cursor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class AcutalState extends AbstractState {


    @Autowired
    private SqlMapper sqlMapper;

    @Override
    protected Cursor<HashMap<String, Object>> getData() {
        return sqlMapper.select();
    }
}
